
function __G__TRACKBACK__(errorMessage)
    print("----------------------------------------")
    print("EDITOR ERROR: " .. tostring(errorMessage) .. "\n")
    print(debug.traceback("", 2))
    print("----------------------------------------")
end

package.path = package.path .. ";src/?.lua"
package.path = package.path .. ";src/"
package.path = package.path .. ";editor/"
package.path = cc.FileUtils:getInstance():getWritablePath().."?.lua;"..package.path

cc.FileUtils:getInstance():setPopupNotify(false)

cc.isDead = function(obj)
    if type(obj)=="nil" then
        return true
    elseif type(obj)=="userdata" then
        return tolua.isnull(obj)
    else
        print("====cc.isDead unknow type")
        return false
    end
end
print(">>>>>>>>>>>>>>>>>>Editor<<<<<<<<<<<<<<<<<<<<<<<<")
require("editor.EditorApp").new("editor","editor"):run()


--unit test
--require("test.test_all")

